/**
 * Copyright 2010 upTick Pty Ltd
 *
 * Licensed under the terms of the GNU General Public License version 3 
 * as published by the Free Software Foundation. You may obtain a copy of the
 * License at: http://www.gnu.org/copyleft/gpl.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations 
 * under the License.
 */

package au.com.uptick.serendipity.client.data;

public class SalesNpsDataSource extends NavigationPaneSectionDataSource {

    private static final String DATA_SOURCE = "salesDS";
    // private static final String DATA_SOURCE = "navigationPaneSectionDS";
    private static final String URL_PREFIX = "datasource/data/salesdatasource";
    private static final String URL_SUFFIX = ".xml";

    private static SalesNpsDataSource instance = null;

    public static SalesNpsDataSource getInstance() {
        if (instance == null) {
            instance = new SalesNpsDataSource(DATA_SOURCE);
        }

        return instance;
    }

    public SalesNpsDataSource(String id) {
        super(id);

        setDataURL(URL_PREFIX, URL_SUFFIX);
    }
}
